package models;

import models.msgs.Card;

public class Hand {
	Card[] cards = new Card[5];
	
	public Hand() { }
	
	public Card[] sort() {
		 int i, j;
		 Card pomoc;
		 for (i = 4; i >= 0; i--) {
			 for (j = 0; j < i; j++) {
				 if (cards[j].rank > cards[j + 1].rank) {
					 pomoc = cards[j];
					 cards[j] = cards[j + 1]; 
					 cards[j + 1] = pomoc; 
				 }
			 }
		 }
		 return cards;
	}
	
	public void remove_cards(){
		for(int i=0; i < 5; i++)
			cards[i]= new Card(-1, -1);
	}
}
